# coding=utf8

import sys
from openpyxl.reader.excel import load_workbook

reload(sys)
sys.setdefaultencoding('utf-8')


def process(work_book, i_max, j_max):
    wb = load_workbook(filename=work_book)
    ws = wb.create_sheet()
    for i in range(0, i_max):
        for j in range(0, j_max):
            ws.cell(row=i * j_max + j + 1, column=1).value = i + 1
            ws.cell(row=i * j_max + j + 1, column=2).value = i * j_max + j + 1
    wb.save(work_book)
